package test1;

import java.time.LocalDate;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-11-23
 * Time: 8:51
 */

/**
 * 计算两个日期相差的填数
 */
public class CountDays {
    public long countDay (LocalDate begin, LocalDate end) {
        long dc = end.toEpochDay() - begin.toEpochDay();//计算两个日期的相差天数
        return dc;
    }
}
